First look at the unset function syntax
unset
Deletes a variable.
Syntax: int unset (mixed Var);
return value: Integer
Function type: PHP system function
Content Description
This function deletes the variable and returns a true value for
PHP Tutorial Variable Destruction unset usage
Unset--releasing the given variableDescribevoid unset (mixed var [, mixed Var [, ...]])
Unset () destroys the specified variable. Note in PHP 3, unset () returns True (actually an integer value of 1),
PHP unset Global variables can only destroy local variables in actual use, and can not achieve the purpose of global variables. Here we will deal with this problem concretely. Hope to help you.
Some functions in the language of PHP are literally
In actual use, PHP unset global variables can only destroy local variables and cannot implement global variables. Next we will solve this problem in detail. Hope to help you.
Some functions in PHP are literally hard to understand for beginners. You
We are learning
The PHP unset () function is used to destroy variables, but most of the time, the function only destroys the variable, and the value of the variable stored in the memory is still not destroyed, that is, it does not achieve the
PHP5 object-oriented explanation-(10) _ set () _ get () _ isset () _ unset () four methods. This article briefly introduces four methods for PHP5 object-oriented explanation-(10) _ set () _ get () _ isset () _ unset, if you have any questions,
The PHP unset () function is used to clear, destroy variables, and we can destroy them with unset (). But at some point, using unset () does not achieve the memory that is consumed by destroying variables! Let's look at an example first:
Gettype: Get the type of the variable.Intval: convert a variable to an integer.Doubleval: convert a variable to a Double Floating Point.Empty: determines whether the variable is configured.Is_array: determines whether the variable type is an array
In php object-oriented language, _ set _ get _ isset _ unset usage is introduced. We often see the usage of bit _ set _ get _ isset _ unset in php object orientation, but we do not understand why we should use these items, next we will introduce one
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.